package com.zxy.feignclients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient(url="http://192.168.14.8:9091",name="abc")
@FeignClient(value = "nacos-a", contextId = "nacos-a-old")
public interface NacosAClient {

    @GetMapping("/port")
    String  getPort();

    @GetMapping("/user")
    String  getUser(@RequestParam("id") Integer id);

    @GetMapping("/sleep")
     String sleep(@RequestParam("second") Integer second);


}
